-- vim:set ft=lua: PAGE_COUNT=50 dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') ct=CreateContentBuilder(GZIP_THRESHOLD_BYTE) ct:Append([=[

# 録画済み一覧

]=]) for i=page*PAGE_COUNT+1,math.min(#a,(page+1)*PAGE_COUNT) do v=a[i] ct:Append('
' ..FormatTimeAndDuration(v.startTime, v.durationSecond) ..' | '..v.serviceName..' | '..v.title..' | '..(v.protectFlag and '🔑' or '-') ..'0 and ' class="drops"' or v.scrambles>0 and ' class="scrambles"' or '')..'>'..v.drops..'/'..v.scrambles ..''..v.comment..'
\n') end ct:Append([=[

]=]) ct:Finish() mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len)..(ct.gzip and 'Content-Encoding: gzip\r\n' or '')..'\r\n'))